#include<iostream>

int sum = 0;
int SCORE = 90;

void compute(int num, int scores)
{
    //打多打少都不行
    if(num < 0 || scores > SCORE) {
        return;
    }

    //以后枪枪都中10都不能满足条件
    if (num * 10 < SCORE - scores) {
        return;
    }

    //打够次数了并且总共达到了预期环数
    if(num == 0) {
        if (scores == SCORE) {
            sum++;
        }

        return;
    }

    for(int i = 0; i <= 10; ++i) {
        compute(num - 1, scores + i);
    }
}

int main()
{
    compute(10, 0);
    std::cout << sum << std::endl;
    return 0;
}

